package solution;

import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int[] nums = new int[]{3,2,4};
        Arrays.sort(nums);
        for (int i = 0; i < nums.length; i++) {
            System.out.print(nums[i]+" ");
        }
        System.out.println();
    }
}
